projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46ed450
)
stack: Fix crash on g_object_get("visible-child")
author
Benjamin Otte
<otte@redhat.com>
Mon, 25 Nov 2013 01:39:13 +0000
(
02:39
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Mon, 25 Nov 2013 02:49:35 +0000
(
03:49
+0100)
priv->visible_child is not a GtkWidget but a custom struct holding the
widget. So use the getter instead.
gtk/gtkstack.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstack.c
b/gtk/gtkstack.c
index 1f0da9e3d41d24ef9b500e875428a13ac3ffc5ba..1c61192df7266e9183dd31b32f11579d6c0a4b32 100644
(file)
--- a/
gtk/gtkstack.c
+++ b/
gtk/gtkstack.c
@@
-227,7
+227,7
@@
gtk_stack_get_property (GObject *object,
g_value_set_boolean (value, priv->homogeneous);
break;
case PROP_VISIBLE_CHILD:
- g_value_set_object (value,
priv->visible_child
);
+ g_value_set_object (value,
gtk_stack_get_visible_child (stack)
);
break;
case PROP_VISIBLE_CHILD_NAME:
g_value_set_string (value, gtk_stack_get_visible_child_name (stack));